//
//  SJViewController.m
//  WSL
//
//  Created by CJ on 2017/10/8.
//  Copyright © 2017年 sanjuetech. All rights reserved.
//

#import "SJViewController.h"

@interface SJViewController ()

@property (nonatomic, strong) UIImageView *backgroundImage;

@end

@implementation SJViewController

- (UIImageView *)backgroundImage {
    
    if (!_backgroundImage) {
        _backgroundImage = [UIImageView new];
        _backgroundImage.image = [UIImage imageNamed:@"home_bg"];
        _backgroundImage.contentMode = UIViewContentModeScaleAspectFill;
        _backgroundImage.clipsToBounds  = YES;
        
    }
    return _backgroundImage;
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:NO];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
//    self.view.backgroundColor = SJColorHexString(@"#3c3c3c");
    
    [self.view addSubview:self.backgroundImage];
    self.backgroundImage.sd_layout.spaceToSuperView(UIEdgeInsetsMake(0, 0, 0, 0));
    
}

@end
